var ReqUtil = {
    sendPostReq: function (options) {
        var url = options.url;
        var param = options.param;
        var callback = options.callback;//成功回调
        var failed = options.failed;//失败回调
        var error = options.error;//异常回调
        var forceSession = options.forceSession;
        if (forceSession) {
            var sessionId = window["sessionStorage"].getItem("SESSION_ID");
            if (sessionId) {
                param.sessionId = sessionId;
            }
        }
        $.ajax({
            type: 'POST',
            url: url,
            contentType: "application/json; charset=utf-8",
            data: JSON.stringify(param),
            success: function (resp) {
                console.log(url + "接口返回:" + resp);
                if (resp && resp.returnCode === "0000") {
                    //成功
                    callback(resp);
                } else {
                    //失败
                    failed(resp);
                }
            },
            error: error,
            dataType: 'json'
        });
    }
};